﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleFactory
{
    /// <summary>
    /// 加法类，派生自运算类，在GetResult方法中具体实现加法运算
    /// </summary>
    public class OperationAdd : Operation 
    {
        public override double GetResult() //实现具体的加法运算
        {
            double result = 0;
            result = NumberA + NumberB;
            return result;
        }
    }
}
